<template>
  <!-- <div v-if="sysLogUnreadCount>0"> -->
  <div>
    <el-badge
      :value="sysLogUnreadCount"
      :hidden="sysLogUnreadCount===0"
      style="line-height: 25px;margin-top: -5px;"
    >
      <el-button
        style="padding: 8px 10px;"
        size="small"
        type="default"
        @click="$router.push({name:'PriceLog'})"
      >
        <svg-icon icon-class="message" />
      </el-button>
    </el-badge>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Message',
  data() {
    return {
      isFullscreen: false
    }
  },
  computed: {
    ...mapGetters([
      'sysLogUnreadCount'
    ])
  },
  mounted() {

  },
  beforeDestroy() {

  },
  methods: {

  }
}
</script>

<style scoped>
.screenfull-svg {
  display: inline-block;
  cursor: pointer;
  fill: #5a5e66;;
  width: 20px;
  height: 20px;
  vertical-align: 10px;
}
</style>
